import glob
import logging
import os
import pathlib
import re

import cv2
import numpy as np
import pandas as pd
import pendulum
import requests
from DrissionPage import ChromiumPage, ChromiumOptions
from DrissionPage.common import Actions
from DrissionPage.errors import AlertExistsError
from DrissionPage.common import Keys
import time
from datetime import datetime, timedelta
from dingding import SendFile
from login import login
from main import usernames5
from 判断是否有广告弹窗 import yes_or_no
from 滑块验证码 import slider_img
import pickle
from pathlib import Path
from 筛选excel import excel
from 获取聊天数据 import get_message_data, 获取聊天数据并上传ERP

co = ChromiumOptions()
co.set_paths(local_port=9223, user_data_path=r"C:\594688317")
page = ChromiumPage(co)
date_start = '2024-04-01 00:00:00'
date_end = '2024-04-30 23:59:59'

logging.basicConfig(level=logging.INFO)
获取聊天数据并上传ERP(page, '昀川供应链')